import request from "@/utils/request";

// 查询功能场地列表
export function listMeeting(query) {
  return request({
    url: "/meeting/page",
    method: "get",
    params: query,
  });
}

// 查询功能场地详细
export function getMeeting(meetId) {
  return request({
    url: "/meeting/" + meetId,
    method: "get",
  });
}

// 新增功能场地
export function addMeeting(data) {
  return request({
    url: "/meeting/add",
    method: "post",
    data: data,
  });
}

// 修改功能场地
export function updateMeeting(data) {
  return request({
    url: "/meeting/update",
    method: "put",
    data: data,
  });
}

// 删除功能场地
export function delMeeting(meetId) {
  return request({
    url: "/meeting/delete/" + meetId,
    method: "delete",
  });
}

/**
 * 导出
 * @returns {*}
 */
export function exportDataApi() {
  return request({
    url: "/meeting/exportData",
    method: "get",
    responseType: "blob",
  });
}
